package com.cr.sync.service.impl;

import com.cr.sync.domain.vo.LsdServiceStationVo;
import com.cr.sync.mapper.TbServiceStationInfoMapper;
import com.cr.sync.service.ITbServiceStationInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 速测室及服务站信息Service业务层处理
 * 
 * @author tang
 * @date 2025-09-03
 */
@Service
public class TbServiceStationInfoServiceImpl implements ITbServiceStationInfoService 
{
    @Resource
    private TbServiceStationInfoMapper tbServiceStationInfoMapper;

    @Override
    public Map<String, Object> getLsdList(String area) {

        // 查询检测室
        List<LsdServiceStationVo> jcsList = tbServiceStationInfoMapper.selectNameList(area, "2");
        // 查询服务站
        List<LsdServiceStationVo> fwzList = tbServiceStationInfoMapper.selectNameList(area, "1");

        Map<String, Object> map = new HashMap<>();
        map.put("jcs", jcsList);
        map.put("fwz", fwzList);
        return map;
    }

}
